import { createWebHistory, createRouter } from 'vue-router'

import HomeView from '../views/index.vue'
import Login from '../login.vue'
import Home from '../views/Home.vue'
import Fenlei from '../views/fenlei.vue'
import Gouwuche from '../views/gouwuche.vue'
import Wode from '../views/wode.vue'



const routes = [
    { path: '/', redirect: '/index' },
    {
        path: '/index',
        component: HomeView,

    },


    {
        path: '/Home',
        component: Home,
    },
    {
        path: '/fenlei',
        component: Fenlei,
    },
    {
        path: '/gouwuche',
        component: Gouwuche,
    },
    {
        path: '/wode',
        component: Wode,
    },

{ path: '/login', component: Login },

]
export const router = createRouter({
    history: createWebHistory(),
    routes,
})